<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::prefix('api')->group(function() {
    Route::post('/user/password.json', 'LoginController@passwordlogin');
    Route::post('/user/send/sms.json','LoginController@sendSms');
});
Route::prefix('api')->middleware('login.check')->group(function () {
    Route::get('/user/get','LoginController@getUser');
});